home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QRZ! Ham Radio 3
/
QRZ Ham Radio Callsign Database - Volume 3.iso
/
world
/
mac
/
contest
/
dxmapsea.hqx
/
DX Map 1.1.1
/
CallToNum.p
next >
Wrap
Text File
|
1992-09-05
|
30KB
|
1,277 lines
unit CallToNum;
interface
uses
XCmdIntf, XCmdUtils;
procedure main (paramPtr: XCmdPtr);
implementation
procedure main;
const
space = ' ';
var
call, country: string;
str: Str255;
i: integer;
begin
ZeroToPas(paramPtr, paramPtr^.params[1]^, str);
call := str;
{ pad out the call }
while (length(call) < 5) do
call := concat(call, space); { pad out the call }
{ upcase the call }
for i := 1 to length(call) do
if (integer(call[i]) >= 97) and (integer(call[i]) <= 122) then
call[i] := char(integer(call[i]) - 32);
case call[1] of
'A':
case call[2] of
'2':
country := '1,1'; {Botswana}
'3':
country := '1,2'; {Tonga}
'4':
country := '1,3';{Oman}
'5':
country := '1,4'; {Bhutan}
'6':
country := '1,5'; {United Arab Emirates}
'7':
country := '1,6'; {Qatar }
'8':
country := '1,40'; {Liberia}
'M'..'O':
case call[3] of
'6':
country := '1,36'; {Balearic Is}
'8':
country := '1,37'; {Canary Is}
'9':
country := '1,38'; {Ceuta & Melilla}
otherwise
country := '1,35'; {Spain}
end;
'P'..'S':
country := '1,8'; {Pakistan}
'T'..'W':
country := '3,223,224,225';{India,Andaman & Nicobar Is,Laccadive Is}
'X':
case call[3] of
'9':
country := '6,203,204,205,206,207,11'; {Norfolk Is,Christmas Is,Cocos-Keeling Is,Mellish Reef,Willis Is,Nauru}
'0':
country := '2,208,209'; {Heard Is,Macquarie Is}
otherwise
country := '1,201';{Australia}
end;
'Y', 'Z':
country := '1,121'; {Argentina}
'H':
case call[3] of
'1':
country := '1,104'; {Baker & Howland Is}
'2':
country := '1,105'; {Guam}
'3':
country := '1,106'; {Johnston Is}
'4':
country := '1,107'; {Midway Is}
'5':
case call[4] of
'K':
country := '1,109'; {Kingman Reef}
otherwise
country := '1,108'; {Palmyra; Jarvis Is}
end; { 4 }
'6':
country := '1,110'; {Hawaii}
'7':
country := '1,111'; {Kure Is}
'8':
country := '1,112'; {Am Samoa}
'9':
country := '1,113'; {Wake Is}
'0':
country := '1,114'; {Mariana Is}
otherwise
country := '0,Unknown AH call';
end; { call[3] }
'L':
case call[3] of
'7':
country := '1,115'; {Alaska}
otherwise
country := '0,Unknown AL call';
end; { call[3] }
'A'..'G', 'I'..'K':
country := '1,101'; {N. America}
otherwise
country := '0,Unknown A call'
end; { a }
'B':
case call[2] of
'V':
country := '1,9'; {Taiwan}
'Y', 'T':
country := '1,10';{China}
otherwise
country := '0,Unknown B call';
end; { b }
'C':
case call[2] of
'2':
country := '1,11';{Nauru}
'3':
country := '1,12';{Andorra}
'5':
country := '1,13';{Gambia}
'6':
country := '1,14';{Bahamas}
'8', '9':
country := '1,15';{Mozambique}
'A'..'D':
country := '1,16';{Chile}
'E':
case call[3] of
'9':
country := '2,17,218';{ant, so shet}
'0':
country := '3,18,19,20';{Easter Is ,San Felix ,Juan Fernandez}
otherwise
country := '1,16';{Chile}
end;
'F'..'K':
country := '1,200';{canada}
'L', 'M', 'O':
country := '1,22';{cuba}
'N':
country := '1,21';{morocco}
'P':
country := '1,23';{bolivia}
'Q'..'T':
case call[3] of
'2':
country := '1,26';{azores}
'3':
country := '1,25';{madiera}
otherwise
country := '1,24';{portugal}
end;
'U':
country := '1,26';{azores}
'V'..'X':
country := '1,27';{uruguay}
'Y':
case call[3] of
'0':
country := '2,28,29';{St Paul Is ,Sable Is}
otherwise
country := '1,200';{Canada }
end;
'Z':
country := '1,200';{Canada }
otherwise
country := '0,Unknown C call ';
end; { c }
'D':
case call[2] of
'2', '3':
country := '1,30';{angola}
'4':
country := '1,31';{cape verde}
'6':
country := '1,32';{comoros}
'A'..'L':
country := '1,33';{FR Germany}
'U'..'Z':
country := '1,34';{philip}
otherwise
country := '0,Unknown D call';
end; { d }
'E':
case call[2] of
'I', 'J':
country := '1,39';{ireland}
'L':
country := '1,40';{liberia}
'P', 'Q':
country := '1,41';{iran}
'T':
country := '1,43';{ethiopia}
'A'..'H':
case call[3] of
'6':
country := '1,36';{Balearic Is }
'8':
country := '1,37';{Canary Is }
'9':
country := '1,38';{Ceuta & Melilla}
otherwise
country := '1,36';{spain}
end;
otherwise
country := '0,Unknown E call ';
end; { e }
'F':
case call[2] of
'G':
country := '1,45';{Guadeloupe}
'S':
country := '1,56';{st martin}
'H':
country := '1,46';{mayotte}
'K':
country := '1,47';{New Caledonia}
'M':
country := '1,48';{martinique}
'O':
country := '2,49,50';{Clipperton Is ,French Polynesia}
'P':
country := '1,51';{St Pierre & Miquelon}
'W':
country := '1,60';{Wallis & Futuna}
'Y':
country := '1,61';{French Guiana}
'R':
country := '4,52,53,54,55';{Glorioso Is,Juan de Nova; Europa,Reunion,Tromelin}
'T':
case call[3] of
'8':
case call[4] of
'W':
country := '1,57';{Crozet}
'X':
country := '1,58';{Kerguelen Is}
'Z':
country := '1,59';{Amsterdam & StPaul Is}
otherwise
country := '0,Unknown FT8 call';
end;
otherwise
country := '0,Unknown FT call ';
end;
otherwise
country := '1,44';{france}
end; { f }
'G':
case call[2] of
'D':
country := '1,63';{Isle of Man}
'I':
country := '1,64';{No Ireland}
'J':
country := '1,65';{Jersey}
'M':
country := '1,66';{Scotland}
'U':
country := '1,67';{Guernsey}
'W':
country := '1,68';{Wales}
otherwise
country := '1,62';{England}
end; { g }
'H':
case call[2] of
'3':
country := '1,81';{Panama}
'4':
country := '1,69';{Solomon Is}
'5':
country := '1,263';{So Africa}
'7', 'T':
country := '1,240';{Nicaragua}
'A', 'G':
country := '1,70';{Hungary}
'B', 'E':
case call[3] of
'0':
country := '1,72';{Liechtenstein}
otherwise
country := '1,71';{Switzerland}
end;
'C', 'D':
case call[3] of
'8':
country := '1,74';{Galapagos Is}
otherwise
country := '1,73';{Ecuador}
end;
'F':
case call[3] of
'0':
country := '1,218';{,So Shetland Is}
otherwise
country := '0,Unknown HF call';
end;
'H':
country := '1,75';{Haiti}
'I':
country := '1,76';{Dominican Rep}
'J':
country := '1,77';{Colombia}
'K':
case call[3] of
'0':
country := '2,78,79';{Malpelo Is,San Andres & Providencia,}
otherwise
country := '1,77';{Colombia}
end;
'L':
country := '1,80';{Korea}
'O', 'P':
country := '1,81';{Panama}
'Q', 'R':
country := '1,82';{Honduras}
'S':
country := '1,83';{Thailand}
'U':
country := '1,242';{El Salvador}
'V':
country := '1,84';{Vatican}
'W'..'Y':
country := '1,44';{France}
'Z':
country := '1,85';{Saudi Arabia}
otherwise
country := '0,Unknown H call';
end; { h }
'I':
case call[2] of
'M', 'S':
case call[3] of
'0':
country := '1,87';{Sardinia}
otherwise
country := '1,86';{Italy}
end;
otherwise
country := '1,86';{Italy}
end; { i }
'J':
case call[2] of
'2':
country := '1,88';{Djibouti}
'3':
country := '1,89';{Grenada}
'4':
country := 'SV,Greece,Europe,28,20,2,38,24';
'5':
country := '1,90';{Guinea-Bissau}
'6':
country := '1,91';{St Lucia}
'7':
country := '1,92';{Dominica}
'8':
country := '1,93';{St Vincent}
'T'..'V':
country := '1,97';{Mongolia}
'W':
country := '1,98';{Svalbard}
'X':
country := '1,99';{Jan Mayen}
'Y':
country := '1,100';{Jordan}
'D':
case call[3] of
'1':
country := '2,95,96';{Minami Torishima,Ogasawara}
otherwise
country := '1,94';{Japan}
end;
'A'..'C', 'E'..'S':
country := '1,94';{Japan}
otherwise
country := '0,Unknown J call ';
end; { j }
'N', 'W':
case call[2] of
'H':
case call[3] of
'1':
country := '1,104'; {Baker & Howland Is}
'2':
country := '1,105'; {Guam}
'3':
country := '1,106'; {Johnston Is}
'4':
country := '1,107'; {Midway Is}
'5':
case call[4] of
'K':
country := '1,109'; {Kingman Reef}
otherwise
country := '1,108'; {Palmyra; Jarvis Is}
end; { 4 }
'6':
country := '1,110'; {Hawaii}
'7':
country := '1,111'; {Kure Is}
'8':
country := '1,112'; {Am Samoa}
'9':
country := '1,113'; {Wake Is}
'0':
country := '1,114'; {Mariana Is}
otherwise
country := '0,Unknown NH/WH call';
end; { call[3] }
'L':
case call[3] of
'7':
country := '1,115'; {Alaska}
otherwise
country := '0,Unknown NL/WH call';
end; { call[3] }
'P':
case call[3] of
'1':
country := '1,116';{Navassa Is}
'2':
country := '1,117';{Virgin Is}
'4':
country := '1,118';{Puerto Rico}
'5':
country := '1,119';{Desecheo Is}
otherwise
country := '0,Unknown NP/WP call';
end;
otherwise
country := '1,101';{United States}
end; { n/w }
'K':
case call[2] of
'C':
case call[3] of
{'4': }
{country := 'Navassa I.';}
'6':
country := '2,102,197';{Micronesia,Belau,}
otherwise
country := '1,101';{United States}
end;
'G':
case call[3] of
'4':
country := '1,103';{Guantanamo Bay}
otherwise
country := '0,Unknown KG call';
end;
'H':
case call[3] of
'1':
country := '1,104'; {Baker & Howland Is}
'2':
country := '1,105'; {Guam}
'3':
country := '1,106'; {Johnston Is}
'4':
country := '1,107'; {Midway Is}
'5':
case call[4] of
'K':
country := '1,109'; {Kingman Reef}
otherwise
country := '1,108'; {Palmyra; Jarvis Is}
end; { 4 }
'6':
country := '1,110'; {Hawaii}
'7':
country := '1,111'; {Kure Is}
'8':
country := '1,112'; {Am Samoa}
'9':
country := '1,113'; {Wake Is}
'0':
country := '1,114'; {Mariana Is}
otherwise
country := '0,Unknown KH call';
end; { call[3] }
'L':
case call[3] of
'7':
country := '1,115'; {Alaska}
otherwise
country := '0,Unknown KL call';
end; { call[3] }
'P':
case call[3] of
'1':
country := '1,116';{Navassa Is}
'2':
country := '1,117';{Virgin Is}
'4':
country := '1,118';{Puerto Rico}
'5':
country := '1,119';{Desecheo Is}
otherwise
country := '0,Unknown KP call';
end;
'X':
case call[3] of
'6':
country := '1,198';{Marshall Is}
otherwise
country := '1,101';{United States}
end;
otherwise
country := '1,101';{United States}
end; { k }
'L':
case call[2] of
'X':
country := '1,122';{Luxembourg}
'Y':
country := '1,123';{Lithuania}
'Z':
country := '1,124';{Bulgaria}
'A'..'N':
country := '1,120';{Norway}
'U':
country := '5,121,215,216,217,218';{Argentina,So Georgia Is,So Orkney Is,So Sandwich Is,So Shetland Is}
'O'..'T', 'V', 'W', '2'..'9':
country := '1,121';{Argentina}
otherwise
country := '0,Unknown L call';
end; { l }
'O':
case call[2] of
'A'..'C':
country := '1,125';{Peru}
'D':
country := '1,126';{Lebanon}
'E':
country := '1,127';{Austria}
'F', 'G', 'I':
country := '1,128';{Finland}
'H':
case call[3] of
'0':
country := '1,129';{Aland Is}
otherwise
country := '1,128';{Finland}
end;
'J':
case call[3] of
'0':
country := '1,130';{Market Reef}
otherwise
country := '0,Unknown OJ call';
end;
'K'..'M':
country := '1,131';{Czechoslovakia}
'X':
country := '1,133';{Greenland}
'Y':
country := '1,134';{Faroe Is}
'Z':
country := '1,135';{Denmark}
'N'..'T':
country := '1,132';{Belgium}
otherwise
country := '0,Unknown O call';
end; { o }
'P':
case call[2] of
'2':
country := '1,136';{Papua New Guinea}
'J':
case call[3] of
'2'..'4':
country := '1,139';{Neth Antilles}
'5'..'8':
country := '1,140';{St Maarten; Saba; St Eus}
otherwise
country := '0,Unknown PJ call';
end;
'Z':
country := '1,145';{Surinam}
'A'..'I':
country := '1,138';{Netherlands}
'P'..'Y':
case call[3] of
'0':
country := '3,142,143,144';{Fernando de Noronha,St Peter & St Paul Rocks,Trindade & Martin Vaz Is,}
otherwise
country := '1,141';{Brazil}
end;
otherwise
country := '0,Unknown P call ';
end; { p }
'S':
case call[2] of
'2':
country := '1,146';{Bangladesh}
'4', '8':
country := '1,263';{So Africa}
'7':
country := '1,147';{Seychelles}
'9':
country := '1,148';{Sao Tome & Principe}
'N'..'R':
country := '1,151';{Poland}
'T':
case call[3] of
'0':
country := '1,153';{Southern Sudan}
otherwise
country := '1,152';{Sudan}
end;
'U':
country := '1,154';{Egypt}
'V':
case call[3] of
'5':
country := '1,156';{Dodecanese}
'9':
country := '1,157';{Crete}
otherwise
country := '2,155,158';{Greece,Mt Athos}
end;
'W'..'Z':
country := '1,155';{Greece}
'A'..'M':
country := '1,150';{Sweden}
otherwise
country := '0,Unknown S call ';
end; { s }
'T':
case call[2] of
'2':
country := '1,159';{Tuvalu}
'3':
case call[2] of
'0':
country := '1,163';{West Kiribati}
'1':
country := '1,160';{Central Kiribati}
'2':
country := '1,161';{East Kiribati}
otherwise
country := '0,Unknown T3 call';
end;
'4':
country := '2,22,263';{Cuba,So Africa}
'5':
country := '1,164';{Somali}
'7':
country := '1,165';{San Marino}
'A'..'C':
country := '1,166';{Turkey}
'F':
country := '1,167';{Iceland}
'G', 'D':
country := '1,168';{Guatemala}
'E':
country := '1,169';{Costa Rica}
'H', 'M', 'O'..'Q', 'V'..'X':
country := '1,44';{France}
'I':
case call[3] of
'9':
country := '1,170';{Cocos Is}
otherwise
country := '1,169';{Costa Rica}
end;
'J':
country := '1,171';{Cameroon}
'K':
country := '1,172';{Corsica}
'L':
country := '1,173';{Central African Rep}
'N':
country := '1,174';{Congo}
'R':
country := '1,175';{Gabon}
'T':
country := '1,176';{Chad}
'U':
country := '1,177';{Ivory Coast}
'Y':
country := '1,178';{Benin}
'Z':
country := '1,179';{Mali}
otherwise
country := '0,Unknown T call ';
end; { t }
'U', 'R':
case call[2] of
'A', 'N', 'V', 'W', 'Z':
case call[3] of
'1':
country := '2,180,285';{Russia (European),Franz Josef Land}
'2':
country := '1,181';{Kaliningrad}
'3', '4', '6':
country := '1,180';{Russia (European)}
'8', '9', '0':
country := '1,182';{Russia (Asiatic)}
otherwise
country := '0,Unknown UA call';
end;
'B', 'T', 'Y':
country := '1,183';{Ukraine}
'C':
country := '1,184';{Byelorussia}
'D':
country := '1,185';{Azerbaijan}
'F':
country := '1,186';{Georgia}
'G':
country := '1,187';{Armenia}
'H':
country := '1,188';{Turkmenistan}
'I':
country := '1,189';{Uzbekistan}
'J':
country := '1,190';{Tadzhikistan}
'L':
country := '1,191';{Kazakhstan}
'M':
country := '1,192';{Kirghizia}
'O':
country := '1,193';{Moldavia}
'P':
country := '1,123';{Lithuania}
'Q':
country := '1,239';{Latvia}
'R':
country := '1,42';{Estonia}
otherwise
country := '0,Unknown U call ';
end; { u }
'V':
case call[2] of
'2':
country := '1,194';{Antigua; Barbuda}
'3':
country := '1,195';{Belize}
'4':
country := '1,196';{St Kitts; Nevis}
'8':
country := '1,199';{Brunei}
'9':
country := '1,263';{So Africa}
'A'..'G', 'O':
country := '1,200';{Canada}
'H'..'N':
case call[3] of
'9':
country := '6,11,203,204,205,206,207';{Norfolk Is,Christmas Is,Cocos-Keeling Is,Mellish Reef,Willis Is,Nauru}
'0':
country := '2,208,209';{Heard Is,Macquarie Is}
otherwise
country := '1,201';{Australia}
end;
'P':
case call[3] of
'2':
case call[4] of
'E':
country := '1,210';{Anguilla}
'M':
country := '1,211';{Montserrat}
'V':
country := '1,212';{Br Virgin Is}
otherwise
country := '0,Unknown VP2 call';
end;
'X':
country := '2,28,29';{St Paul Is,Sable Is}
'Y':
country := '2,200,28';{Canada,St Paul Is}
'5':
country := '1,213';{Turks & Caicos Is}
'8':
country := '5,214,215,216,217,218';{Falkland Is,So Georgia Is,So Orkney Is,So Sandwich Is,So Shetland Is}
'9':
country := '1,219';{Bermuda}
otherwise
country := '0,Unknown VP call';
end;
'Q':
case call[3] of
'8':
country := '1,220';{Chagos}
'9':
country := '2,220,147';{Chagos,Seychelles}
otherwise
country := '0,Unknown VQ call';
end;
'R':
case call[3] of
'6':
country := '1,221';{Pitcairn Is}
otherwise
country := '0,Unknown VR call';
end;
'S':
case call[3] of
'6':
country := '1,222';{Hong Kong}
'9':
case call[4] of
'M':
country := '1,309';{Maldive Is}
otherwise
country := '0,Unknown VS9 call';
end;
otherwise
country := '0,Unknown VS call';
end;
'U':
country := '3,223,224,225';{India,Andaman & Nicobar Is,Laccadive Is}
otherwise
country := '0,Unknown V call ';
end; { V }
'X':
case call[2] of
'A'..'I':
case call[3] of
'4':
country := '1,227';{Revilla Gigedo}
otherwise
country := '1,226';{Mexico}
end;
'J'..'O':
country := '1,200';{Canada}
'P':
country := '1,133';{Greenland}
'Q'..'R':
case call[3] of
'9':
country := '2,17,218';{Antarctica,So Shetland Is}
'0':
country := '3,18,19,20';{Easter Is,San Felix,Juan Fernandez}
otherwise
country := '1,16';{Chile}
end;
'T':
country := '1,228';{Burkina Faso}
'U':
country := '1,229';{Cambodia}
'V':
country := '1,280';{Vietnam}
'W':
country := '1,230';{Laos}
'X':
case call[3] of
'9':
country := '1,231';{Macao}
otherwise
country := '0,Unknown XX call';
end;
'Y', 'Z':
country := '1,232';{Burma}
otherwise
country := '0,Unknown X call';
end; { X }
'y', 'Y':
case call[2] of
'2'..'9':
country := '1,33';{(east) Germany}
'A':
country := '1,234';{Afghanistan}
'B'..'H':
country := '1,235';{Indonesia}
'I':
country := '1,236';{Iraq}
'J':
country := '1,237';{Vanuatu}
'K':
country := '1,238';{Syria}
'L':
country := '1,239';{Latvia}
'N':
country := '1,240';{Nicaragua}
'O'..'R':
country := '1,241';{Romania}
'S':
country := '1,242';{El Salvador}
'T', 'U', 'Z':
country := '1,243';{Yugoslavia}
'V':
case call[3] of
'0':
country := '1,245';{Aves Is}
otherwise
country := '1,244';{Venezuela}
end;
'W'..'Y':
country := '1,244';{Venezuela}
otherwise
country := '0,Unknown Y call';
end; { Y }
'Z':
case call[2] of
'2':
country := '1,246';{Zimbabwe}
'A':
country := '1,247';{Albania}
'B':
case call[3] of
'2':
country := '1,248';{Gibraltar}
otherwise
country := '0,Unknown ZB call';
end; { ZB }
'C':
case call[3] of
'4':
country := '1,249';{Cyprus SBA}
otherwise
country := '0,Unknown ZC call';
end; { ZC }
'D':
case call[3] of
'7':
country := '1,250';{St Helena}
'8':
country := '1,251';{Ascension Is}
'9':
country := '1,252';{Tristan da Cunha & Gough Is}
otherwise
country := '0,Unknown ZD call';
end; { ZC }
'F':
country := '1,253';{Cayman Is}
'K':
case call[3] of
'1':
country := '2,254,255';{No Cook Is,So Cook Is}
'2':
country := '1,256';{Niue}
'3':
country := '1,257';{Tokelau Is}
otherwise
country := '0,Unknown ZK call';
end; { ZK }
'L':
case call[3] of
'7':
country := '1,259';{Chatham Is}
'8':
country := '1,260';{Kermadec Is}
'9':
country := '1,261';{Auckland; Campbell Is}
otherwise
country := '1,258';{New Zealand}
end; { ZL }
'M':
country := '1,258';{New Zealand}
'P':
country := '1,262';{Paraguay}
'R'..'U':
case call[3] of
'2':
country := '1,265';{Pr Edward & Marion Is}
'3':
country := '1,264';{Namibia}
otherwise
country := '1,263';{So Africa}
end; { ZR-ZU }
'V'..'Z':
case call[3] of
'0':
country := '3,142,143,144';{Fernando de Noronha,St Peter & St Paul Rocks,Trindade & Martin Vaz Is,}
otherwise
country := '1,141';{Brazil}
end;
otherwise
country := '0,Unknown Z call';
end; { Z }
'1':
case call[2] of
'A':
case call[3] of
'0':
country := '1,267';{Sov. Mil. Order of Malta}
otherwise
country := '0,Unknown 1A call';
end; { 1A }
'S':
country := '1,268';{Spratly Is}
otherwise
country := '0,Unknown 1 call';
end; { 1 }
'3':
case call[2] of
'A':
country := '1,269';{Monaco}
'B':
case call[3] of
'6', '7':
country := '1,270';{Agalega & St Brandon}
'8':
country := '1,271';{Mauritius}
'9':
country := '1,272';{Rodriguez Is}
otherwise
country := '0,Unknown 3B call';
end; { 3B }
'C':
case call[3] of
'0':
country := '1,274';{Pagalu}
otherwise
country := '1,273';{Equatorial Guinea}
end; { 3C }
'D':
case call[3] of
'2':
country := '3,275,276,277';{Fiji Is,Conway Reef,Rotuma}
'6':
country := '1,278';{Swaziland}
otherwise
country := '0,Unknown 3D call';
end; { 3D }
'G':
case call[3] of
'9':
country := '2,17,218';{ant, so shet}
'0':
country := '3,18,19,20';{Easter Is ,San Felix ,Juan Fernandez}
otherwise
country := '1,16';{Chile}
end;
'V':
country := '1,279';{Tunisia}
'W':
country := '1,280';{Vietnam}
'X':
country := '1,281';{Guinea}
'Y':
country := '2,282,283';{Bouvet,Peter I}
'Z':
country := '1,151';{Poland}
otherwise
country := '0,Unknown 3 call';
end; { 3 }
'4':
case call[2] of
'A':
case call[3] of
'4':
country := '1,227';{Revilla Gigedo}
otherwise
country := '1,226';{Mexico}
end;
'D'..'I':
country := '1,34';{Philippines}
'M':
case call[3] of
'0':
country := '1,245';{Aves Is}
otherwise
country := '1,246';{Venezuela}
end;
'N', 'O':
country := '1,243';{Yugoslavia}
'P'..'S':
country := '1,286';{Sri Lanka}
'T':
country := '1,125';{Peru}
'U':
country := '2,287,288';{ITU Geneva,UN HQ}
'V':
country := '1,75';{Haiti}
'W':
country := '1,304';{Yemen}
'X', 'Z':
country := '1,290';{Israel}
otherwise
country := '0,Unknown 4 call';
end; { 4 }
'5':
case call[2] of
'A':
country := '1,291';{Libya}
'B':
country := '1,292';{Cyprus}
'H', 'I':
country := '1,293';{Tanzania}
'J', 'K':
case call[3] of
'0':
country := '2,78,79';{Malpelo Is,San Andres & Providencia,}
otherwise
country := '1,77';{Colombia}
end;
'L', 'M':
country := '1,40';{Liberia}
'N', 'O':
country := '1,294';{Nigeria}
'R', 'S':
country := '1,295';{Madagascar}
'T':
country := '1,296';{Mauritania}
'U':
country := '1,297';{Niger}
'V':
country := '1,298';{Togo}
'W':
country := '1,299';{Western Samoa}
'X':
country := '1,300';{Uganda}
'Y', 'Z':
country := '1,301';{Kenya}
otherwise
country := '0,Unknown 5 call';
end; { 5 }
'6':
case call[2] of
'C':
country := '1,238';{Syria}
'D'..'J':
case call[3] of
'4':
country := '1,227';{Revilla Gigedo}
otherwise
country := '1,226';{Mexico}
end;
'O':
country := '1,164';{Somali}
'T', 'U':
case call[3] of
'0':
country := '1,153';{Southern Sudan}
otherwise
country := '1,152';{Sudan}
end;
'V', 'W':
country := '1,302';{Senegal}
'Y':
country := '1,303';{Jamaica}
otherwise
country := '0,Unknown 6 call';
end; { 6 }
'7':
case call[2] of
'A'..'I':
country := '1,235';{Indonesia}
'J'..'N':
case call[3] of
'D':
case call[4] of
'1':
country := '2,95,96';{Minami Torishima,Ogasawara}
otherwise
country := '1,94';{Japan}
end;
otherwise
country := '1,94';{Japan}
end;
'O':
country := '1,304';{PDR Yemen}
'P':
country := '1,305';{Lesotho}
'Q':
country := '1,306';{Malawi}
'S':
country := '1,150';{Sweden}
'T'..'Y':
country := '1,307';{Algeria}
'Z':
country := '1,85';{Saudi Arabia}
otherwise
country := '0,Unknown 7 call';
end; { 7 }
'8':
case call[2] of
'A'..'I':
country := '1,235';{Indonesia}
'J':
country := '1,94';{Japan}
'O':
country := '1,1'; {Botswana}
'P':
country := '1,308';{Barbados}
'Q':
country := '1,309';{Maldive Is}
'R':
country := '1,310';{Guyana}
'S':
country := '1,150';{Sweden}
otherwise
country := '0,Unknown 8 call';
end; { 8 }
'9':
case call[2] of
'B'..'D':
country := '1,41';{Iran}
'E', 'F':
country := '1,43';{Ethiopia}
'G':
country := '1,311';{Ghana}
'H':
country := '1,312';{Malta}
'J', 'I':
country := '1,313';{Zambia}
'K':
country := '1,314';{Kuwait}
'L':
country := '1,315';{Sierra Leone}
'M':
case call[3] of
'2', '4':
country := '1,316';{West Malaysia}
'6', '8':
country := '1,317';{East Malaysia}
otherwise
country := '0,Unknown 9M call';
end; { 9M }
'N':
country := '1,318';{Nepal}
'Q'..'T':
country := '1,319';{Zaire}
'U':
country := '1,320';{Burundi}
'V':
country := '1,321';{Singapore}
'X':
country := '1,322';{Rwanda}
'Y', 'Z':
country := '1,323';{Trinidad & Tobago}
otherwise
country := '0,Unknown 9 call';
end; { 9 }
otherwise
country := '0,Unknown call';
end; { call[1] }
str := country;
paramPtr^.returnValue := PasToZero(paramPtr, str);
end; { main }
end. { implementation }